#ifndef __GRAPHICS_H___
#define __GRAPHICS_H___

#include <SDL/SDL.h>
#include <SDL/SDL_gfxPrimitives.h>

#include "client.h"

class Graphics {
  private:
    SDL_Surface *screen;
        SDL_Surface *back;
int xpos,ypos,alpha;
SDL_Surface *image;
		Client *_client;

//    bool evt_pr; //process events ?
    
  public:

    void init(Client*);
    int init_screen();
    int init_input();
    void main();
    
    void slock();
    void sulock();
    void DrawIMG(SDL_Surface *, int, int, int, int, int, int);
    void DrawIMG(SDL_Surface *, int, int);
    void DrawBG();
    
    int InitImages();
    
    Graphics();
    ~Graphics();
};

#endif
